<%--
  Created by IntelliJ IDEA.
  User: wangjun
  Date: 2016/5/9
  Time: 09:09
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<core:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<body onload="window.print();">
<div common-modal-form>
        <table class="table table-bordered">
            <tr>
                <td class="text-right">
                    客户姓名：
                </td>
                <td>
                    <input type="text" ng-model="vm.item.cusName"class="{{vm.constant.inputClass}}" maxlength="64" name="cusName"/>
                </td>
            </tr>
            <tr>
                <td class="text-right">
                    风险类型：
                </td>
                <td>
                    <select ng-model="vm.item.riskType" class="{{vm.constant.inputClass}}"
                            required name="riskType"
                            ng-options="key as value for (key,value) in vm.cached.PERSONAL_RISK_TYPE">
                        <option value="">请选择</option>
                    </select>
                </td>
            </tr>
               <!-- <tr>
                <td class="text-right">
                    商户属性：
                </td>
               <td>
                    <select ng-model="vm.item.cusNature" class="{{vm.constant.inputClass}}"
                            required name="cusNature"
                            ng-options="item.key as item.value for item in vm.cached.MERCHANT_PROPERTY">
                        <option value="">请选择</option>
                    </select>
               </td>
            </tr>-->
            <tr>
                <td class="text-right">
                    手机号：
                </td>
                <td>
                    <input type="text" ng-model="vm.item.mobileNo" ng-pattern="/^[1]{1}[0-9]{10}$/" class="{{vm.constant.inputClass}}" name="mobileNo">
                    <%-- <select ng-model="vm.item.bankCardType" class="{{vm.constant.inputClass}}"
                             ng-options="item.key as item.value for item in vm.cached.BANK_INFO_TYPE">
                         <option value="">请选择</option>
                         </select>--%>
                 </td>
                 </tr>
             <tr>
             <td class="text-right">
                 mac地址：
             </td>
             <td>
                 <input type="text" ng-model="vm.item.mac"class="{{vm.constant.inputClass}}" maxlength="32" ng-pattern="/^([A-F0-9]{2}[-,:]){5}[A-F0-9]{2}$/" name="mac"/>
<br/>
                 <span>MAC地址（XX:XX:XX:XX:XX:XX或XX-XX-XX-XX-XX-XX，其中X取值范围为0-9,A-F。）</span>
             </td>
         </tr>
             <tr>
             <td class="text-right">
                 Imei：
             </td>
             <td>
                 <input type="text" ng-model="vm.item.imei"class="{{vm.constant.inputClass}}" maxlength="32" name="imei"  ng-pattern="/^[0-9]{0,32}$/"/>
             </td>
         </tr>
             <tr>
                 <td class="text-right">
                     银行帐/卡号：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.bankNo"class="{{vm.constant.inputClass}}" maxlength="32" ng-pattern="/^[0-9]{1,32}$/" name="bankNo"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     开户行：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.openBank"class="{{vm.constant.inputClass}}" maxlength="64" name="openBank"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     身份证件号码：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.docCode" class="{{vm.constant.inputClass}}" name="docCode" ng-pattern="/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/"  maxlength="18" />
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     IP地址：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.ip" maxlength="20" class="{{vm.constant.inputClass}}" ng-pattern="/(^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$)/"  name="ip"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     地址：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.address"class="{{vm.constant.inputClass}}" maxlength="128"  name="address"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     固定电话：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.telephone"class="{{vm.constant.inputClass}}"  ng-pattern="/^(([0-9]{3}[\-][0-9]{8})|([0-9]{4}[\-][0-9]{7,8}))$/"  name="telephone"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     收款银行帐/卡号：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.recBankNo"class="{{vm.constant.inputClass}}" maxlength="32"  ng-pattern="/^[0-9]{1,32}$/" name="recBankNo"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     收款账/卡号开户行：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.recOpenBank" class="{{vm.constant.inputClass}}"   maxlength="64" name="recOpenBank"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     Email：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.email" maxlength="64" class="{{vm.constant.inputClass}}" ng-pattern="/(^(([a-zA-Z0-9_\-\.]{1,})@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?))$)/" name="email"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     信息级别：
                 </td>
                 <td>
                     <select ng-model="vm.item.level" class="{{vm.constant.inputClass}}"
                             required name="level"
                             ng-options="key as value for (key,value) in vm.cached.INFORMATION_LEVEL">
                         <option value="">请选择</option>
                     </select>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     风险事件发生时间：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.occurtimeb" uib-datepicker-popup="yyyy-MM-dd"
                            class="{{vm.constant.inputClass}}" name="occurtimeb"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     风险事件结束时间：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.occurtimee" uib-datepicker-popup="yyyy-MM-dd"
                            class="{{vm.constant.inputClass}}" name="occurtimee"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     风险事件发生渠道：
                 </td>
                 <td>
                 <select ng-model="vm.item.occurchan" class="{{vm.constant.inputClass}}"
                          name="occurchan"
                         ng-options="key as value for (key,value) in vm.cached.RISK_EVENT_CHANNEL">
                     <option value="">请选择</option>
                 </select>
                 </td>
             </tr>
             <tr >
                 <td class="text-right">
                     风险事件发生地域：
                 </td>
            <%--     <td>
                     <input type="text" ng-model="vm.item.occurarea"class="{{vm.constant.inputClass}}" name="occurarea"/>
                 </td>--%>
                 <%--<td>
                 <select ng-model="vm.item.occurarea" class="{{vm.constant.inputClass}}"
                          name="occurarea"
                         ng-options="item as item.des for item  in vm.cached.MCC_CODE.ADDRESS_Select">
                     <option value="">请选择</option>
                 </select>
                 </td>--%>
                 <td >
                    <%-- <select ng-model="vm.item.occurarea" class="{{vm.constant.inputClass}}"
                             required name="occurarea"
                             ng-options="item.key as item.value for item in vm.cached.ADDRESS_Select">
                         <option value="">请选择</option>
                     </select>--%>
                        <span ng-repeat="beans in  vm.basicData track by $index">
                         {{beans.cityName}}<button ng-if="beans.cityName" ng-click="vm.deleteOccurarea($index)"><i class="glyphicon glyphicon-minus"></i></button>
                         </span>
                        <br/>
                        省:<select ng-model="vm.basicData.pro" ng-options="item as item.areaName for item  in vm.cached.ADDRESS_Select" class="{{vm.constant.inputClass}} "
                                  >
                    </select>
                        <button ng-click="vm.addOccurarea(vm.basicData.pro.areaCode,vm.basicData.pro.areaName,vm.basicData.city.cityCode,vm.basicData.city.cityName)"><i class="glyphicon glyphicon-plus"></i></button>
                        <%--<button ng-click="vm.deleteOccurarea($index)"><i class="glyphicon glyphicon-minus"></i></button>--%>
                        <div ng-if="vm.basicData.pro" >
                            市:<select ng-model="vm.basicData.city" ng-options="item as item.cityName for item in vm.basicData.pro.citys" class="{{vm.constant.inputClass}} "
                                      >
                        </select>
                        </div>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     风险事件描述：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.note"class="{{vm.constant.inputClass}}" maxlength="1000" name="note"/>
                 </td>
             </tr>
             <tr>
                 <td class="text-right">
                     有效期：
                 </td>
                 <td>
                     <input type="text" ng-model="vm.item.validDate" uib-datepicker-popup="yyyy-MM-dd"
                            class="{{vm.constant.inputClass}}" required name="validDate"/>
                 </td>
             </tr>

        </table>

</div>
</body>
</html>
